#define _CRT_SECURE_NO_WARNINGS

#include "Sort.h"

void TestInsertSort()
{
	int a[] = { 9,8,7,6,5,4,3,2,1,0 };

	InsertSort(a, sizeof(a) / sizeof(a[0]));

	printf("InsertSort->\n");
	PrintSort(a, sizeof(a) / sizeof(a[0]));

}

void TestShellSort()
{
	int a[] = { 9,8,7,6,5,4,3,2,1,0 };

	ShellSort(a, sizeof(a) / sizeof(a[0]));

	printf("ShellSort->\n");
	PrintSort(a, sizeof(a) / sizeof(a[0]));

}

void TestSelectSortP()
{
	int a[] = { 9,8,7,6,5,4,3,2,1,0 };

	SelectSort(a, sizeof(a) / sizeof(a[0]));

	printf("SelectSort->\n");
	PrintSort(a, sizeof(a) / sizeof(a[0]));
}

void TestBubbleSort()
{

	int a[] = { 9,8,7,6,5,4,3,2,1,0 };

	BubbleSort(a, sizeof(a) / sizeof(a[0]));

	printf("BubbleSort->\n");
	PrintSort(a, sizeof(a) / sizeof(a[0]));


}


int main()
{

	TestInsertSort();

	TestShellSort();

	TestSelectSortP();

	TestBubbleSort();

	return 0;
}